package com.guomao.dao;


import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

//通过注解注册到ioc容器中的bean的默认id是类名首字母小写
@Repository
//@Scope(value = "singleton")
@Scope(value = "prototype")
public class BookDao {

    public void show() {
        System.out.println("dao 查询了数据库...");
    }
}
